<?php
/**
 * Created by PhpStorm.
 * User: mojie126
 * Date: 2017/7/4 0004
 * Time: 下午 17:28
 */

namespace app\index\model;


use think\Model;

class Category extends Model
{
	static public function getCategoryName($id)
	{
		$res = Category::get(["id" => $id])->getAttr("name");

		return $res;
	}
}